package com.xidian.zhiancloud.dao.exam;

import java.util.List;

import com.github.pagehelper.Page;
import com.xidian.zhiancloud.model.exam.TrainPlanUser;
import com.xidian.zhiancloud.model.exam.UserDoc;

/**
 * 培训计划用户Mapper接口
 * 
 * @author zhouweitao
 * @date 2021-03-16
 */
public interface TrainPlanUserMapper 
{
    /**
     * 查询培训计划用户
     * 
     * @param id 培训计划用户ID
     * @return 培训计划用户
     */
    public TrainPlanUser selectTrainPlanUserById(Long id);

    /**
     * 查询培训计划用户列表
     * 
     * @param trainPlanUser 培训计划用户
     * @return 培训计划用户集合
     */
    public Page<TrainPlanUser> selectTrainPlanUserList(TrainPlanUser trainPlanUser);
    
    public Page<UserDoc> selectUserDocList(UserDoc doc);

    /**
     * 新增培训计划用户
     * 
     * @param trainPlanUser 培训计划用户
     * @return 结果
     */
    public int insertTrainPlanUser(TrainPlanUser trainPlanUser);

    /**
     * 修改培训计划用户
     * 
     * @param trainPlanUser 培训计划用户
     * @return 结果
     */
    public int updateTrainPlanUser(TrainPlanUser trainPlanUser);

    /**
     * 删除培训计划用户
     * 
     * @param id 培训计划用户ID
     * @return 结果
     */
    public int deleteTrainPlanUserById(Long id);

    /**
     * 批量删除培训计划用户
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTrainPlanUserByIds(Long[] ids);

	public void insertTrainPlanUserBatch(List<TrainPlanUser> users);

	public void deleteTrainPlanUserByPlanId(Long id);
}
